package controller;

import javax.faces.context.FacesContext;

import BEANs.NavegationBean;

public class NavegationController {
	
	public void requestPage(String viewedPage){
		
		FacesContext context = FacesContext.getCurrentInstance();		
		NavegationBean navegationBean = (NavegationBean) context.getExternalContext().getSessionMap().get("navegationBean");
		
		navegationBean.setViewedPage(viewedPage);
		context.getExternalContext().getSessionMap().put("navegationBean", navegationBean);
				
    }

}
